package com.hanliukui.ai.langchain4j.assistant.translate;

import dev.langchain4j.model.chat.ChatModel;
import dev.langchain4j.service.AiServices;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class TranslateConfig {
    @Bean
    public TranslateAssistant translateAssistant(ChatModel chatModel) {
        return AiServices.builder(TranslateAssistant.class)
                .chatModel(chatModel)
                .build();
    }
}
